﻿using SqlSugar;

namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 高血压筛查记录
    /// </summary>
    [SugarTable("sift_hypertension", TableDescription = "高血压筛查记录")]
    public class SiftHypertension
    {
        /// <summary>
        /// 病人id
        /// </summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string PatientId { get; set; }

        /// <summary>
        /// 筛查次数
        /// </summary>
        //[SugarColumn(ColumnName = "SiftNo", IsIdentity = true, IsPrimaryKey = true)]
        //public int SiftNo { get; set; }

        /// <summary>
        /// 筛查日期
        /// </summary>
        [SugarColumn(ColumnName = "SiftDate")]
        public DateTime SiftDate { get; set; }

        /// <summary>
        /// 危险因素
        /// </summary>
        [SugarColumn(ColumnName = "RiskFactors")]
        public string? RiskFactors { get; set; }

        /// <summary>
        /// 诊断检查
        /// </summary>
        [SugarColumn(ColumnName = "DiagnosticTest")]
        public string? DiagnosticTest { get; set; }

        /// <summary>
        /// 高血压分级
        /// </summary>
        [SugarColumn(ColumnName = "Grade")]
        public int? Grade { get; set; }

        /// <summary>
        /// 高血压危险分级
        /// </summary>
        [SugarColumn(ColumnName = "RiskGrade")]
        public int? RiskGrade { get; set; }

        /// <summary>
        /// 高血压随访方案
        /// </summary>
        [SugarColumn(ColumnName = "SiftPlan")]
        public string? SiftPlan { get; set; }

        /// <summary>
        /// 高血压随访方案_其他
        /// </summary>
        [SugarColumn(ColumnName = "SiftPlanOther")]
        public string? SiftPlanOther { get; set; }

        /// <summary>
        /// 下次随访日期
        /// </summary>
        [SugarColumn(ColumnName = "NextSiftDate")]
        public DateTime? NextSiftDate { get; set; }

        /// <summary>
        /// 预计随访地点
        /// </summary>
        [SugarColumn(ColumnName = "NextSiftAddress")]
        public string? NextSiftAddress { get; set; }

        /// <summary>
        /// 转诊日期
        /// </summary>
        [SugarColumn(ColumnName = "ReferralDate")]
        public DateTime? ReferralDate { get; set; }

        /// <summary>
        /// 建议转诊医院
        /// </summary>
        [SugarColumn(ColumnName = "ReferralHos")]
        public string? ReferralHos { get; set; }

        /// <summary>
        /// 联系方案
        /// </summary>
        [SugarColumn(ColumnName = "Number")]
        public string? Number { get; set; }

        /// <summary>
        /// 转诊号
        /// </summary>
        [SugarColumn(ColumnName = "ReferralNo")]
        public string? ReferralNo { get; set; }
        /// <summary>
        /// 其它备注
        /// </summary>
        [SugarColumn(ColumnName = "RemarkOther")]
        public string? RemarkOther { get; set; }
        /// <summary>
        /// 医生id
        /// </summary>
        public int? DoctorId { get; set; }
        /// <summary>
        /// 筛查单号
        /// </summary>
        [SugarColumn(ColumnName = "ScreeningCode", IsPrimaryKey = true)]
        public string? ScreeningCode { get; set; }

        //[Navigate(NavigateType.Dynamic, "[{m:\"PatientId\",c:\"PatientId\"},{m:\"SiftNo\",c:\"SiftNo\"}]")]
        //public List<SiftComData> Schemes { get; set; }
    }
}